import request from '@/utils/request'
import {SysJobLogDomain} from '@/type.d/monitor/jobLog';

// 查询定时任务调度日志列表
export function listJobLog(query: SysJobLogDomain) {
  return request('/monitor/jobLog/list',{
    method: 'get',
    params: query
  })
}

// 查询定时任务调度日志详细
export function getJobLog(jobLogId: string) {
  return request('/monitor/jobLog/' + jobLogId,{
    method: 'get'
  })
}

// 新增定时任务调度日志
export function addJobLog(data: SysJobLogDomain) {
  return request('/monitor/jobLog',{
    method: 'post',
    data: data
  })
}

// 修改定时任务调度日志
export function updateJobLog(data: SysJobLogDomain) {
  return request('/monitor/jobLog',{
    method: 'put',
    data: data
  })
}

// 删除定时任务调度日志
export function delJobLog(jobLogId: string) {
  return request('/monitor/jobLog/' + jobLogId,{
    method: 'delete'
  })
}
